package com.etc.dao;

import com.etc.model.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    int findById(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin deleteById(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<Admin> findByUsernameAndPassword(@Param("username") String username
            , @Param("password") String password);

    List<Admin> findByUsername(@Param("username") String username);

}